<?php declare(strict_types=1);

namespace shali\ydb\think2fa\facade;

use think\Facade;

/**
 * 两步认证门面
 * @package shali\ydb\think2fa\facade
 * @method static bool verify(string $secret, string $code) 验证验证码是否正确
 * @method static string genSecret(int $length = 32) 生成密钥
 * @method static string getQrCode(string $secret, string $phone, string $platformChineseName = '') 生成验证码
 */
class TwoFactorAuth extends Facade
{
    protected static function getFacadeClass(): string
    {
        return '2fa';
    }
}
